pub fn birthday_in_sameday(n:i32, result:f64)->i32 {
    let new_result = result * ((365-n) as f64)/(365 as f64);
    if new_result <= 0.5 {
        n
    } else{
        cal(n+1,new_result)
    }
}

pub fn main(){
    println!("{}",birthday_in_sameday(1,1.0) + 1);
}